<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
</head>
<body>
   <ul id="test-ul">
       <li class="java">Java</li>
       <li name="py">Python</li>
   </ul>
   <script>
       //原来
       //document.getElementById('test-ul')

      // $('#test-ul li[name=py]').text();//无参数是取值
      // $('#test-ul li[name=py]').text(123);//有参数是设置
       // $('#test-ul li[name=py]').html();//无参数是取值
       // $('#test-ul li[name=py]').html(123);//有参数是设置

       // $('#test-ul li[name=py]').css("color","red");
       // $('#test-ul li[name=py]').show();
       // $('#test-ul li[name=py]').hide();
   </script>
</body>
</html>